home *** CD-ROM | disk | FTP | other *** search
/ 3D Games - Real-time Rend…ng & Software Technology / 3D Games - Real-time Rendering & Software Technology.iso / flysdk / plugin / viewport / viewport.h < prev   
Encoding:
C/C++ Source or Header  |  1999-09-21  |  459 b   |  30 lines

  1. enum 
  2. {
  3.     TYPE_VIEWPORT=0x160,
  4. };
  5.  
  6. class viewport : public bsp_object
  7. {
  8. public:
  9.     bsp_object *target;
  10.     float xf,yf,sxf,syf;
  11.     int dirflag,on,key;
  12.  
  13.     int get_custom_param_desc(int i,param_desc *pd);
  14.  
  15.     viewport() 
  16.     { 
  17.     type=TYPE_VIEWPORT; 
  18.     on=0;
  19.     };
  20. };
  21.  
  22. class viewport_desc : public class_desc
  23. {
  24. public:
  25.     void *create() { return new viewport; };
  26.     char *get_name() { return "viewport"; };
  27.     int get_type() { return TYPE_VIEWPORT; };
  28. };
  29.  
  30.